package com.ruoyi.wzgl.wzfl.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.util.List;

/**
 * 物资分类对象 wzgl_wzfl
 *
 * @author huacai
 * @date 2024-09-14
 */
public class Wzfl extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 物资分类id */
    private Integer wzflId;

    /** 父分类id */
    @Excel(name = "父分类id")
    private Integer fId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String flName;

    /** 排序 */
    @Excel(name = "排序")
    private Integer px;

    /** 用户ID */
    private Integer userId;

    /** 部门ID */
    private Integer deptId;
    // 子分类列表
    private List<Wzfl> children;

    @Override
    public List<Wzfl> getChildren() {
        return children;
    }

    public void setChildren(List<?> children) {
        this.children = (List<Wzfl>) children;
    }

    public void setWzflId(Integer wzflId)
    {
        this.wzflId = wzflId;
    }

    public Integer getWzflId()
    {
        return wzflId;
    }
    public void setfId(Integer fId)
    {
        this.fId = fId;
    }

    public Integer getfId()
    {
        return fId;
    }
    public void setFlName(String flName)
    {
        this.flName = flName;
    }

    public String getFlName()
    {
        return flName;
    }
    public void setPx(Integer px)
    {
        this.px = px;
    }

    public Integer getPx()
    {
        return px;
    }
    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setDeptId(Integer deptId)
    {
        this.deptId = deptId;
    }

    public Integer getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wzflId", getWzflId())
            .append("fId", getfId())
            .append("flName", getFlName())
            .append("px", getPx())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .toString();
    }
}
